Skip to main content

dragAction

Type

property

Summary

Specifies what action will be performed upon an object when it is dragged.

Syntax

set the dragAction to {<none> | <move> | <copy> | <link>}

Description

The dragAction property is used to indicate which action should be (or has been) performed on the data. It can be one of:

  • none - the target application does not want the data
  • move - the target application wants to move the data
  • copy - the target application wants to copy the data
  • link - the target application wants to link the data

When acting as the source application, query the dragAction property in the dragEnd handler to determine what action the target application performed.

When acting as the target application, set the dragAction property in dragEnter, dragMove or dragLeave to indicate what you may do with the data if it is dropped; set the dragAction property in the dragDrop handler to indicate what you did with the data.

Examples

set the dragAction to "move"
if word 1 of the target is "button" then
set the dragAction to "none"
end if

message: dragDrop, dragEnter, dragMove, dragLeave, dragEnd, dragStart

property: allowableDragActions

Compatibility and Support

Introduced

LiveCode 2.9

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?